package com.mall.b2c.service;

import java.util.List;

import com.mall.b2c.domain.member.MemberDomain;
import com.mall.b2c.domain.member.SiteNoticeDomain;
import com.mall.b2c.domain.member.SiteNoticeTextDomain;
import com.mall.common.service.BaseService;

/**
 * Service接口 - 站内通知 - 接收者
 * @author 
 */
public interface SiteNoticeService extends BaseService<SiteNoticeDomain, Long>  {
	/**
	 * 后台新增消息
	 * @param siteNoticeText
	 * @param memberIds
	 * @param operator
	 */
	public void save(SiteNoticeTextDomain siteNoticeText, Long[] memberIds, String operator);
	
	/**
	 * 获取指定消息关联的会员
	 * @param noticeTextId
	 * @return
	 */
	public List<MemberDomain> findMemberList(Long noticeTextId);

	
	/**
	 * 后台修改消息
	 * @param noticeText
	 * @param operator
	 */
	public void edit(SiteNoticeTextDomain noticeText, String operator);
	
	/**
	 * 前台浏览
	 */
	public SiteNoticeDomain view(Long noticeTextId, Long memberId);
	
	/**
	 * 关联会员
	 * @param noticeTextId
	 * @param memberIds
	 */
	public void correlate(Long noticeTextId, Long[] memberIds, String operator);

	/**
	 * 前台删除
	 * @param ids
	 */
	public void delete(Long[] ids, Long memberId);
}